import request from '@/utils/request'

// 广告列表
export function adsList() {
  return request({
    url: `/lejuAdmin/advertise/adsList`
  })
}

// 新增广告
export function addAds(data) {
  return request({
    url: `/lejuAdmin/advertise/addAds`,
    method: 'post',
    data
  })
}

// 更新广告
export function updateAds(data) {
  return request({
    url: `/lejuAdmin/advertise/updateAds`,
    method: 'post',
    data
  })
}

// 删除广告
export function delAds(adsId) {
  return request({
    url: `/lejuAdmin/advertise/delAds/${adsId}`,
    method: 'delete'
  })
}

